﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net;

namespace PServiceBus.Core.Runtime.Extensions {
    public static class WebExtension {
        public static bool Exists(this string url) {
            var client = new WebClient();
            try { client.DownloadData(url); } catch {
                client.Dispose();
                return false;
            }
            return true;
        }
    }
}
